package com.pkk.log.entity.log;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title:日志实体<br>
 * @Description: a><br>
 * @date 2017年2019/6/10 0010 下午 3:58<br>
 * @URL:a]
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SysLog对象", description = "")
@TableName("sys_log")
public class SysLogEntity implements Serializable {

  private static final long serialVersionUID = 1560153030285L;


  @ApiModelProperty(value = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "操作用户名称")
  private String username;

  @ApiModelProperty(value = "方法名")
  private String method;

  @ApiModelProperty(value = "请求的参数")
  private String args;

  @ApiModelProperty(value = "描述")
  private String depict;

  @ApiModelProperty(value = "操作时长")
  private Long executeTime;

  @ApiModelProperty(value = "ip")
  private String clientIp;

  /**
   * 操作时间 isNullAble:0
   */
  @ApiModelProperty(value = "操作时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;

}
